<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<div></div>
<script>
  var div = document.querySelector('div');

  console.log(location.search);
  let str1 = location.search.substr(1, location.search.length - 1);
  console.log(str1);
  let strArr = str1.split('=');
  console.log(strArr);

  div.innerHTML = strArr[1] + ',hello';

</script>
</body>
</html>